package ch.uzh.ifi.sonar.storage;

import java.util.List;

import org.hibernate.Session;

public class StorageResult {
	Session session = null;
	Object result = null;
	List<?> listResult = null;
	
	StorageResult(Session session , Object result){
		this.session = session;
		this.result = result;
	}
	
	StorageResult(Session session , List<?> listResult){
		this.session = session;
		this.listResult = listResult;
	}

	public Session getSession() {
		return session;
	}

	public Object getResult() {
		return result;
	}

	public List<?> getListResult() {
		return listResult;
	}
	
	public boolean isListResult(){
		return (this.listResult != null);
	}
}
